package com.hx.vending.service.impl;

import com.hx.vending.bean.AdminRole;
import com.hx.vending.dao.AdminRoleMapper;
import com.hx.vending.service.IAdminRoleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by Administrator on 2019/1/9.
 */
@Service
public class AdminRoleServiceImpl implements IAdminRoleService{

    @Resource
    private AdminRoleMapper adminRoleMapper;

    @Override
    public AdminRole selectByPrimary(AdminRole adminRole) {
        return adminRoleMapper.selectByPrimary(adminRole);
    }

    @Override
    public int insertSelective(AdminRole adminRole) {
        return adminRoleMapper.insertSelective(adminRole);
    }

    @Override
    public Integer[] selectRoleByAdmin(Integer adminId) {
        return adminRoleMapper.selectRoleByAdmin(adminId);
    }

    @Override
    public Integer deleteByAdminId(List<Integer> integerList) {
        return adminRoleMapper.deleteByAdminId(integerList);
    }

    @Override
    public Integer[] selectRole() {
        return adminRoleMapper.selectRole();
    }
}
